package org.example.spring.service.userServiceImpl;

import org.example.spring.mapper.AdminMapper;
import org.example.spring.domain.pojo.Admin;
import org.example.spring.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {

    @Autowired
    private AdminMapper adminMapper;


    @Override
    public Admin getAdmin(String username, String password) {
        Admin admin=adminMapper.getAdmin(username,password);
        return admin;
    }
}
